package com.kylin.job;

import com.kylin.service.StatService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: zweiwei
 * @Date: 2022-09-17 11:35:40
 * @Version 1.0
 */
@Component
public class StatJob {

    @Autowired
    private StatService statService;

    @XxlJob("getCompletedQuestions")
    public void getCompletedQuestions() throws Exception {
        System.out.println(statService.getCompletedQuestionsByUserName("kylin-x"));
    }
}
